class Person
{
    String Name;
    char Sex;
    int Age;
    public Person(String pName,char pSex,int pAge)
    {
        Name=pName;
        Sex=pSex;
        Age=pAge;
    }
    public String toString()
    {
        String s="姓名: "+Name+" 性别" +Sex+" 年龄"+Age;
        return s;
    }
}

public class CreatePerson
{
    public static void main(String args[])
    {
        Person p1= new Person("张三",'男',20);
        Person p2= new Person("李四",'女',28);
        p1.Sex='女';
        System.out.println(p1.toString());
        p2.Age=33;
        System.out.println(p2.toString());
    }
}
